package com.haste.pojo;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.stereotype.Component;

import java.io.Serializable;

@Data
@Component
@AllArgsConstructor
@NoArgsConstructor
//在实际开发中，对象一般都需要序列化
public class User implements Serializable {
    private String name;
    private int age;

/*    public User(String name, int age) {
        this.name = name;
        this.age = age;
    }

    public User() {
    }*/
}
